package com.lzy.huijinjiazu.mvp.ui.adapter;

import android.graphics.Paint;
import android.text.Html;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lzy.huijinjiazu.R;

/**
 * Created by long on 2018/1/13.
 */

public class OrderChildAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public OrderChildAdapter() {
        super(R.layout.item_order_child);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        TextView tvGoodsMarketprice = helper.getView(R.id.tv_goods_marketprice);
        tvGoodsMarketprice.setText(Html.fromHtml(mContext.getResources().getString(R.string.symbol_moeny, "100")));
        tvGoodsMarketprice.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG);
    }
}
